package com.enba.boot.core.base;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;

public class ShowBootInfoRunner implements ApplicationRunner {

  Logger logger = LoggerFactory.getLogger("enba-boot-integration-info");

  @Override
  public void run(ApplicationArguments args) throws Exception {
    ShowBootInfo.moduleMap.forEach(
        (k, v) -> {
          logger.info("模块名称【{}】 : 描述信息【{}】", k, v);
        });
  }
}
